<?php
/**
 * Created by PhpStorm.
 * User: yuanjie
 * Date: 15/10/9
 * Time: 下午5:33
 */
class OrderFlows extends Eloquent
{
    protected $table = "order_flows";

    public static function timeline($status, $order_id, $userid,$type)
    {
        $order_flows = new OrderFlows;
        $order_flows->order_id = $order_id;
        $order_flows->status = $status;
        $order_flows->user_id = $userid;
        $order_flows->type = $type;
        $order_flows->created_at = Common::num2DateTime(time());
        $order_flows->save();
    }

}